package com.jimmy.medical.repository;

import com.jimmy.medical.entity.Order;
import com.jimmy.medical.entity.OrderExecutionRecord;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface OrderExecutionRecordRepository extends JpaSpecificationExecutor<OrderExecutionRecord>, PagingAndSortingRepository<OrderExecutionRecord, Long> {


    OrderExecutionRecord findFirstByOrder(Order order);
}
